﻿using System;
using System.Collections.Generic;
using ExpenseSystem.Common.BaseModel;

namespace ExpenseSystem.Model
{
    [TableName("ORG_EMPLOYEE")]
    public class EmployeeModel : NormalModel
    {
        private string _code;
        private string _name;
        private int _sex;
        private long _departmentid;
        private string _tel;
        private long _userprojection;
        private long _titleid;
        private string _hiredate;
        private string _leavedate;
        private string _account;
        private long _bank;
        public virtual string Code
        {
            get { return _code; }
            set
            {
                if (_code == value)
                    return;
                _code = value;
                if (!PropertyUpdated.Contains("Code"))
                    PropertyUpdated.Add("Code");
            }
        }
        public virtual string Name
        {
            get { return _name; }
            set
            {
                if (_name == value)
                    return;
                _name = value;
                if (!PropertyUpdated.Contains("Name"))
                    PropertyUpdated.Add("Name");
            }
        }
        public virtual int Sex
        {
            get { return _sex; }
            set
            {
                if (_sex == value)
                    return;
                _sex = value;
                if (!PropertyUpdated.Contains("Sex"))
                    PropertyUpdated.Add("Sex");
            }
        }
        public virtual string Tel
        {
            get { return _tel; }
            set
            {
                if (_tel == value)
                    return;
                _tel = value;
                if (!PropertyUpdated.Contains("Tel"))
                    PropertyUpdated.Add("Tel");
            }
        }
        public virtual long DepartmentId
        {
            get { return _departmentid; }
            set
            {
                if (_departmentid == value)
                    return;
                _departmentid = value;
                if (!PropertyUpdated.Contains("DepartmentId"))
                    PropertyUpdated.Add("DepartmentId");
            }
        }
        public virtual long UserProjection
        {
            get { return _userprojection; }
            set
            {
                if (_userprojection == value)
                    return;
                _userprojection = value;
                if (!PropertyUpdated.Contains("UserProjection"))
                    PropertyUpdated.Add("UserProjection");
            }
        }
        public virtual long TitleId
        {
            get { return _titleid; }
            set
            {
                if (_titleid == value)
                    return;
                _titleid = value;
                if (!PropertyUpdated.Contains("TitleId"))
                    PropertyUpdated.Add("TitleId");
            }
        }
        public virtual string HireDate
        {
            get { return _hiredate; }
            set
            {
                if (_hiredate == value)
                    return;
                _hiredate = value;
                if (!PropertyUpdated.Contains("HireDate"))
                    PropertyUpdated.Add("HireDate");
            }
        }
        public virtual string LeaveDate
        {
            get { return _leavedate; }
            set
            {
                if (_leavedate == value)
                    return;
                _leavedate = value;
                if (!PropertyUpdated.Contains("LeaveDate"))
                    PropertyUpdated.Add("LeaveDate");
            }
        }
        public virtual long BankId
        {
            get { return _bank; }
            set
            {
                if (_bank == value)
                    return;
                _bank = value;
                if (!PropertyUpdated.Contains("BankId"))
                    PropertyUpdated.Add("BankId");
            }
        }
        public virtual string Account
        {
            get { return _account; }
            set
            {
                if (_account == value)
                    return;
                _account = value;
                if (!PropertyUpdated.Contains("Account"))
                    PropertyUpdated.Add("Account");
            }
        }
    }
}
